import UIKit

/**
 Time: 2023.11.03 21:33
 From: [Dictionary 字典中一个不太有用的特性](https://juejin.cn/post/7272508420271013924)
 */

let userDict: [String: String] = ["name": "jianbo.pei"]
userDict["name"]
/// "jianbo.pei"

let userAge = userDict["age"]
/// nil

let userAge1 = userDict["age", default: "18"]
/// "18"

let userAge2 = userDict["age"] ?? "20"
/// "20"
